//
//  MyHeaderView.m
//  DanTang
//
//  Created by honeyrr on 2017/9/27.
//  Copyright © 2017年 honeyrr. All rights reserved.
//

#import "MyHeaderView.h"

@interface MyHeaderView()

@property (weak, nonatomic) IBOutlet UIButton *headerMsgBtn;
@property (weak, nonatomic) IBOutlet UIButton *headerIconBtn;


@end

@implementation MyHeaderView

- (IBAction)btnClick:(id)sender {
    UIButton *btn = sender;
    if (btn == self.headerMsgBtn) {
        if ([self.delegate respondsToSelector:@selector(headerViewMsgBtnClick:)]) {
            [self.delegate headerViewMsgBtnClick:self];
        }
    } else {
        if ([self.delegate respondsToSelector:@selector(headerViewIconBtnClick:)]) {
            [self.delegate headerViewIconBtnClick:self];
        }
    }
}


@end
